<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body> 
    <a href="/add">添加</a>
    <table>
        <tr>
            <th>姓名</th>
            <th>年龄</th>
            <th>操作</th>
        </tr>
        {{each list}}
            <tr>
                <th>{{$value.username}}</th>
                <th>{{$value.age}}</th>
                <th><a href="/edit?id={{@$value._id}}">编辑</a>  <a href="/delete?id={{@$value._id}}">删除</a></th>
            </tr>
        {{/each}}
    </table>
</body>
</html>